package com.demo.gtpush;

import android.content.Context;
import android.util.Log;

import com.igexin.sdk.GTIntentService;
import com.igexin.sdk.message.GTCmdMessage;
import com.igexin.sdk.message.GTNotificationMessage;
import com.igexin.sdk.message.GTTransmitMessage;

/**
 * 作者:zwk
 * 联系方式：497981239@qq.com
 * 时间：on 2019/7/11 11:05
 * 功能：
 */
public class IntentService extends GTIntentService {
	@Override
	public void onReceiveServicePid(Context context, int i) {

	}

	@Override
	public void onReceiveClientId(Context context, String s) {
     Log.d("zwk","-------------------"+s);
	}

	@Override
	public void onReceiveMessageData(Context context, GTTransmitMessage gtTransmitMessage) {
		Log.d("zwk", "--------------" + gtTransmitMessage.toString());

	}

	@Override
	public void onReceiveOnlineState(Context context, boolean b) {

		Log.d("zwk", "-------------离线上线通知" + b);

	}

	@Override
	public void onReceiveCommandResult(Context context, GTCmdMessage gtCmdMessage) {

		Log.d("zwk", "-------------------回执处理");

	}

	@Override
	public void onNotificationMessageArrived(Context context, GTNotificationMessage gtNotificationMessage) {
		Log.d("zwk", "---------通知消息到达-------" + gtNotificationMessage.toString());
	}

	@Override
	public void onNotificationMessageClicked(Context context, GTNotificationMessage gtNotificationMessage) {
		Log.d("zwk", "---------通知消息点击-------" + gtNotificationMessage.toString());


	}
}
